#include <iostream>
#include <string>
#include <cstdio>
using namespace std;

string Encrypt (string str)
{
	for(int i=0;i<str.length();i++)
	{
		if(str[i]=='z') str[i]='A';
		else if(str[i]=='Z') str[i]=='a';
		else if(str[i]=='9') str[i]='0';
		else if(str[i]>='a'&&str[i]<'z') str[i]=str[i]+1-('a'-'A');
		else if(str[i]>='A'&&str[i]<'Z') str[i]=str[i]+1+('a'-'A');
		else if(str[i]>='0'&&str[i]<'9') str[i]=str[i]+1;
		else ;
	}
	
	return str;
}

string unEncrypt (string str)
{
	for(int i=0;i<str.length();i++)
	{
		if(str[i]=='a') str[i]='Z';
		else if(str[i]=='z') str[i]=='A';
		else if(str[i]=='0') str[i]='9';
		else if(str[i]>'a'&&str[i]<='z') str[i]=str[i]-1-('a'-'A');
		else if(str[i]>'A'&&str[i]<='Z') str[i]=str[i]-1+('a'-'A');
		else if(str[i]>0&&str[i]<='9') str[i]=str[i]-1;
		else ;
	}
	return str;
	
}

int main()
{
	string str1,str2;
	while(getline(cin,str1)&&!cin.eof())
	{
		
		//getchar();
		getline(cin,str2);
		//getchar();
		cout<<Encrypt(str1)<<endl;
		cout<<unEncrypt(str2)<<endl;
		
	}
	return 0;
}
